#pragma once
#include "CyNetObjectEnum.h"

class CyNetObject
{
public:
	CyNetObject(void);
	virtual ~CyNetObject(void);

	virtual int GetSize() const = 0;
	virtual int GetStream(char* buffer, int size) const = 0;
	virtual CyNetObject& FromStream(const char* buffer) = 0;
	virtual CyNetObjectEnum GetType() const = 0;
};
